package xyz.zhzby.cyzx.ucenter.service;

import xyz.zhzby.cyzx.servicebase.domain.RestResponse;
import xyz.zhzby.cyzx.ucenter.dto.request.PasswordRequest;
import xyz.zhzby.cyzx.ucenter.dto.response.UserResponse;
import xyz.zhzby.cyzx.ucenter.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户类 服务类
 * </p>
 *
 * @author zby
 * @since 2021-12-16
 */
public interface IUserService extends IService<User> {

    RestResponse<UserResponse> getCurrentUserInfo();

    RestResponse<String> updateInfo(User user);

    RestResponse<String> updateEmail(String email, String code);

    RestResponse<String> updatePhone(String phone, String code);

    RestResponse<String> updateAvatar(String avatar);

    RestResponse<String> updatePassword(PasswordRequest passwordRequest);
}
